Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows resource startup timeout to be configured #491

Conversation

mcgizzle
Copy link
Contributor

Configurable by a new system property

For test setups that do a lot of work, 120 seconds can be too short.

Open to suggestions for the name and how to handle the IllegalArgumentException if the key is empty.

@CLAassistant
Copy link

CLAassistant commented Feb 25, 2022

CLA assistant check
All committers have signed the CLA.

@mcgizzle mcgizzle force-pushed the issue-489/configurable-startup-timeout branch from 46ad081 to b0f0894 Compare February 25, 2022 15:35
@mcgizzle mcgizzle marked this pull request as ready for review February 25, 2022 15:36
Configurable by a new system property
@mcgizzle mcgizzle force-pushed the issue-489/configurable-startup-timeout branch from b0f0894 to a2ec5cc Compare February 25, 2022 16:26
@@ -119,9 +120,15 @@ trait RunnerCompat[F[_]] { self: sbt.testing.Runner =>
gate)
stillRunning.set(sbtTasks.size)

val maybeTimeout: Option[FiniteDuration] = Try(System.getProperty("weaver.test.startupTimeout"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pro-tip : you can use sys.props (which gives you a scala map of the available system properties)

@mcgizzle mcgizzle force-pushed the issue-489/configurable-startup-timeout branch from fc6d638 to ff06057 Compare February 25, 2022 17:14
@Baccata
Copy link
Contributor

Baccata commented Feb 27, 2022

@mcgizzle can you run scalafmtAll in sbt and push ?

@Baccata
Copy link
Contributor

Baccata commented Mar 1, 2022

Merging, will fmt myself :)

@Baccata Baccata merged commit b563391 into disneystreaming:master Mar 1, 2022
@mcgizzle
Copy link
Contributor Author

mcgizzle commented Mar 1, 2022

Thanks :) I'm on leave this week and don't have my laptop with me, sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants